/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.absisgroup.nsc.utilities;

/**
 *
 * @author Hue
 */
public class FileObject {
    private String filename;
    private String realpath;
    private byte[] data;

    /** Creates a new instance of FileObject */
    public FileObject(final String filename, final String realpath, final byte[] _data) {
        this.filename = filename;
        if (_data == null) {
            this.data = null;
        } else {
            this.data = new byte[_data.length];
            System.arraycopy(_data, 0, data, 0, _data.length);
        }
        this.realpath = realpath;
    }

    public String getFileName() {
        return filename;
    }

    public String getRealpath() {
        return realpath;
    }

    public byte[] getData() {
        return data;
    }
}
